package stream;

import java.util.stream.IntStream;

public class StreamTest {
    public static void main(String[] args) {
        int[] nums={1,2,3};
        int sum = IntStream.of(nums).parallel().sum();
        System.out.println(sum);
    }
}
